<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');

        $this->addElement('text', 'username', array(
                    'label'     => 'UserName:',
                    'required'  => true
        ));

        $this->addElement('password', 'password', array(
                    'label'     => 'Password:',
                    'required'  => true
        ));

        $this->addElement('captcha', 'captcha', array(
                    'label'     => 'Please enter the 4 letters displayed below:',
                    'required'  => true,
                    'captcha'   => array(
                        'captcha'   => 'Figlet',
                        'wordLen'   => 4,
                        'timeout'   => 500,
                    )
        ));

        $this->addElement('submit', 'submit', array(
                    'ignore'    => true,
                    'label'     => 'Login'
        ));

        $this->addElement('hash', 'csrf', array(
                    'ignore'    => true
        ));
    }


}

